package org.jackysoft.service;

import java.util.concurrent.ExecutionException;

import org.jackysoft.data.IDataProvider;
import org.jackysoft.entity.OfficeDocument;

public interface OfficeDocumentService extends IDataProvider<String,OfficeDocument>{
	   String printToPDF(OfficeDocument office) throws InterruptedException, ExecutionException;
	   
	   /**
	    * 指定时间戳的文档是否存在
	    * @param mills 时间戳
	    * @return
	    *  true 存在
	    *  false 不存在
	    * */
	   boolean exists(long mills);
	   
	   /**
	    * 删除指定时间戳的附件
	    * */
	   void remove(long mills);
	   
	   /**
	    * 根据时间戳取得对象
	    * */
	   OfficeDocument getByMills(long mills);
	   
}
